<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>奖学金申请</title>
<include file="./Apps/BoxAdmin/View/Public/header.html" />
</head>
<body>
 
    
 
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
            	<!-- <p class="list_vmall_bin"><a href="<{:U('level')}>" target="_black">会员等级管理</a></p> -->
                  <include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
               
            </div>
            <div class="list_vmall_rig" >
          
 <section class="content">
        <div class="page-content" >
            
    <div class="panel panel-default">
        <div class="panel-heading">
            <strong>奖学金申请</strong>
        </div>
        <div class="panel-body">
            <div id="toolbar" style="width: 100%;">
                <form id="filter" method="get"  class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-3">
                            <input type="text" name="kw" value="<{$kw}>" class="form-control" placeholder="用户信息">
                        </div>
						 
						                 <div class="col-sm-4">
                            <input type="submit" class="btn btn-primary btn-sm" value="筛选">
																												<a data-type="modal" href="/BoxAddon/AutoComplete/Index/list_table/auto_complete_name/addon_forms/group/Scholarship" class="btn btn-info btn-sm">表单设置</a>
                        </div>
                    </div>
                     
                </form>
            </div>
       <div class="bootstrap-table">
		<div class="fixed-table-container" style="padding-bottom: 0px;"> 
			<div class="fixed-table-body"> 
				<table id="data-table" class="table"><thead>
			<tr>
			 
			<th style="" data-field="id"><div class="th-inner sortable both desc">用户ID</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">QQ</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">课程</div><div class="fht-cell"></div></th>
                <th style="" data-field="name"><div class="th-inner ">排序</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">申请时间</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">审核结果</div><div class="fht-cell"></div></th>
			<th style="" data-field="id"><div class="th-inner ">操作</div><div class="fht-cell"></div></th>
			</tr></thead>
			<tbody>
			<volist name="data" id="vo">
			<tr data-index="0">
			<td style=""><{$vo.user_id}></td>
			
			<td style=""><{$vo.qq}></td>
			<td style=""><{$vo.subject}></td>
                <td style=""><input type="text" key="id" placeholder="顺序" onblur="set_order(this)" table="edu_user_scholarship" id="<{$vo.id}>" value="<{$vo.order_by}>" autocomplete="off"></td>
			<td style=""><{$vo.add_time}></td>
			<td style=""><{$status_array[$vo['status']]}></td>
 
			<td style="">
			 
			 <a data-type="modal" title="用户信息" href="<{:U('School/student_info',array('user_id'=>$vo['user_id']))}>" class="btn btn-primary btn-xs delete-this">查看用户</a>
			 &nbsp;&nbsp;<a data-type="modal" href="<{:U('status',array('id'=>$vo['id']))}>" class="btn btn-primary btn-xs delete-this">查看上传信息</a>
			 <if condition="$vo['status'] eq 2">
			 <a   title="发放学币" onclick="$('#ScholarshipId').val(<{$vo['id']}>)"    data-type="modal" href="<{:U('School/send_money')}>?ids=<{$vo.user_id}>&id=<{$vo['id']}>&remark=获得【<{$vo.subject}>】奖学金" class="btn btn-primary btn-xs delete-this selfmodal">发放奖学金</a>
			 </if>

			</td>
			</tr>
			</volist>
			</tbody></table>
			 </div> 
			  <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" />
		</div>
	    </div>
			<div class="clearfix"></div>
        </div>
    </div>
     

        </div>
    </section>
                
                </div>
            </div>
       
        
    </div>

 
     

 <!-- Modal -->
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"></h4>
      </div>
      <div class="modal-body">
        ...
      </div>
       
    </div>
  </div>
</div>
<input type="hidden" id="ScholarshipId" value="" />

     <style>
	 .modal-header .close {
    margin-top: -10px;
}
	 </style>
<script>
function ajaxSubmitSuccess(){		 
	$("#send_money_form").find("button").text("更新奖学金状态中...");
	var ScholarshipId= $("#ScholarshipId").val();
	$.post("<{:U('Scholarship/status')}>",{status:4,id:ScholarshipId},function(){
		  alert("操作成功");
		  window.location.reload();
	})
}
 </script>
 
</body>
</html>
